<%-- 
    Document   : TemplateAdmin
    Created on : Mar 24, 2012, 10:05:52 AM
    Author     : An
--%>

<%@taglib  uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<script language="javascript">
    function KiemTra(){
        alert("Bạn phải đăng nhập dưới quyền admin")
    }
    if(session.getAttribute("username_")==null){
        KiemTra()
    }
</script>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Quản lý admin</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="css/css.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" href="js/jquery/jquery.ui.all.css"/>
    </head>
    <body>
        <%
            if(session.getAttribute("username_")!=null){
        %>
        <div id="body">
            <div style="height: 50px"></div>
            <div id="thongtinadmin">
                <b style="margin-left: 200px"><img src="images/admin.png"/></b>
                <b style="font-size: 19px;font-weight: bold">Xin chào:<b style="color: red"> <%= session.getAttribute("username_") %></b></b>
                <img style="margin-top: 2px" src='images/41.gif' border='0'  />
                <b style="margin-left: 150px"><img src="images/Home.png"/></b>
                <a style="font-size: 16px;color: blue;font-weight: bold;text-decoration: none;margin-left: 1px" href="Logoutcontroller">Trang chủ</a>
                <a style="font-size: 16px;color: blue;font-weight: bold;text-decoration: none;margin-left: 150px" href="Logoutcontroller">Thoát</a>
                <img style="margin-top: 2px;margin-left: 5px" src='images/103.gif' border='0'/>
            </div>

            <div style="height: 15px"></div>
            <div id="templateadmin">
                <div id="menuleft">
                    <div style="height: 60px"></div>
                    <div style="margin-left: 20px">
                        <img src="images/caidat.png"/>
                        <a href="ThemCauHoicontroller?Action=View" style="font-size: 19px;color: blue;font-weight: bold;text-decoration: none">Thêm câu hỏi</a>
                    </div>
                    <div style="height: 20px"></div>
                    
                     <div style="margin-left: 20px">
                        <img src="images/caidat.png"/>
                        <a href="TimKiemCauHoicontroller?Action=View" style="font-size: 19px;color: blue;font-weight: bold;text-decoration: none">Tìm kiếm câu hỏi</a>
                    </div>
                    <div style="height: 20px"></div>
                    
                    <div style="margin-left: 20px">
                        <img src="images/caidat.png"/>
                        <a href="ThemCauHoicontroller?Action=CustomizeCapdoAdmin" style="font-size: 19px;color: blue;font-weight: bold;text-decoration: none">Customize cấp độ câu hỏi</a>
                    </div>
                    <div style="height: 20px"></div>
                    
                    <div style="margin-left: 20px">
                        <img src="images/caidat.png"/>
                        <a href="ThongKeKetQuaThicontroller?Action=View" style="font-size: 19px;color: blue;font-weight: bold;text-decoration: none">Thống kê kết quả thi</a>
                    </div>
                    <div style="height: 20px"></div>
                    
                    <div style="margin-left: 20px">
                        <img src="images/caidat.png"/>
                        <a href="UploadCauHoicontroller?Action=Download" style="font-size: 19px;color: blue;font-weight: bold;text-decoration: none"><b style="color: chartreuse;font-weight: bold">Download</b> câu hỏi XML</a>
                    </div>
                    <div style="height: 20px"></div>
                    
                    <div style="margin-left: 20px">
                        <img src="images/caidat.png"/>
                        <a href="UploadCauHoicontroller?Action=View" style="font-size: 19px;color: blue;font-weight: bold;text-decoration: none">Upload câu hỏi XML</a>
                    </div>
                    <div style="height: 20px"></div>
                    
                   
                </div>
                <div id="menuright">
                    <tiles:insertAttribute name="QuanLyAdmin" />
                </div>
                
            </div>
           
        </div>
          <%}%>
    </body>
</html>